#ifndef TEST13_H
#define TEST13_H

#include <QWidget>
#include "tcpserver/my_tcpserver.h"
#include "tcpserver/tcpclient.h"
#include <QTimer>

namespace Ui {
class test13;
}

class test13 : public QWidget
{
    Q_OBJECT

public:
    explicit test13(QWidget *parent = nullptr);
    ~test13();

private:
    Ui::test13 *ui;

    my_TCPServer *my_server;
    TcpClient *my_client;
    QTimer *timer;
    QTimer *timer2;
    void initital();

private slots:
    void readserver(QString buf,int id);

    void readclient(QString buf);
    void TCP_Conect(int id);

    void TCP_disConect(int id);
    void on_pushButton_clicked();
    void on_pushButton_4_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_3_clicked();
    void on_pushButton_5_clicked();
    void on_pushButton_6_clicked();
};

#endif // TEST13_H
